/**
 * 
 */
package com.dj.common.web.rest;

import java.util.Date;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
public class ResponsePack<T> {

	/**
	 * 响应的数据内容
	 */
	private T res_data;

	/**
	 * 抛出异常时，返回的错误的信息
	 */
	private RestApiError res_msg = new RestApiError("0","成功", new Date());


	public ResponsePack(T res_data) {
		this.res_data = res_data;
	}

	public ResponsePack(RestApiError res_msg) {
		this.res_msg = res_msg;
	}
}
